public class Computer {
    private String brand;
    private double price;
    private String size;
    @Override
    public String toString() {
        return " " + getBrand() + "\t" + getPrice() + "\t" + getSize() + "\t";
    }
//空参 全参  get and set
    public Computer() {
    }

    public Computer(String brand, double price, String size) {
        this.brand = brand;
        this.price = price;
        this.size = size;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }


}
